package kr.hkit.powerjava.chapter06;

//학점계산프로그램
import java.util.Scanner;

public class Hakjum {

	public static void main(String[] args) {

		int d;

		Scanner in = new Scanner(System.in);
		System.out.print("점수를 입력하세요 : ");

		d = in.nextInt();

		if (d >= 90) {
			System.out.println("A");
		} else if (d >= 80) {
			System.out.println("B");
		} else if (d >= 70) {
			System.out.println("C");
		} else if (d >= 60) {
			System.out.println("D");
		} else {
			System.out.println("F");
		}

	}
}
